const Router = require('koa-router')
const { TagController } = require('../controllers/tag.controller')

const tagRoute = new Router({
  prefix: '/tag'
})

tagRoute.post('/', TagController.addTag)
tagRoute.get('/page/:page', TagController.getTagByPage)
tagRoute.get('/search/:keyword', TagController.searchTag)

module.exports = {
  tagRoute
}